package com.nova.edc.model.system;

import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Transient;
import com.nova.module.filter.annotation.FilterCondition;
import com.nova.module.filter.query.FilterMode;

/**
 * @author Administrator 2015-12-23
 */
@Table("t_area_point")
public class AreaPoint {
    @Id
    private Integer id;
    @FilterCondition(filterMode = FilterMode.LIKE)
    private String pointname;
    @FilterCondition
    private String gatewayid;
    @FilterCondition
    private Integer sensorid;
    @FilterCondition
    private Integer channelid;
    @FilterCondition
    private Integer areaid;
    private Integer devicetypeid;
    @Transient
    @Join(fieldName = "devicetypeid", table = DeviceType.class, joinColumn = "Name")
    private String devicetypename;
    @FilterCondition
    private Integer customerinfoid;
    @Transient
    @Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "CustomerName")
    private String companyname;
    private Integer power1;
    private Integer power2;
    private Integer realpower;
    @Transient
    private Integer useminute;
    @Transient
    private Integer status;
    @Transient
    private String statusName;
    private String relevancename;

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public String getRelevancename() {
        return relevancename;
    }

    public void setRelevancename(String relevancename) {
        this.relevancename = relevancename;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRealpower() {
        return realpower;
    }

    public void setRealpower(Integer realpower) {
        this.realpower = realpower;
    }

    public Integer getUseminute() {
        return useminute;
    }

    public void setUseminute(Integer useminute) {
        this.useminute = useminute;
    }

    public Integer getPower1() {
        return power1;
    }

    public void setPower1(Integer power1) {
        this.power1 = power1;
    }

    public Integer getPower2() {
        return power2;
    }

    public void setPower2(Integer power2) {
        this.power2 = power2;
    }

    public Integer getCustomerinfoid() {
        return customerinfoid;
    }

    public void setCustomerinfoid(Integer customerinfoid) {
        this.customerinfoid = customerinfoid;
    }

    public String getDevicetypename() {
        return devicetypename;
    }

    public void setDevicetypename(String devicetypename) {
        this.devicetypename = devicetypename;
    }

    public Integer getDevicetypeid() {
        return devicetypeid;
    }

    public void setDevicetypeid(Integer devicetypeid) {
        this.devicetypeid = devicetypeid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPointname() {
        return pointname;
    }

    public void setPointname(String pointname) {
        this.pointname = pointname;
    }

    public String getGatewayid() {
        return gatewayid;
    }

    public void setGatewayid(String gatewayid) {
        this.gatewayid = gatewayid;
    }

    public Integer getSensorid() {
        return sensorid;
    }

    public void setSensorid(Integer sensorid) {
        this.sensorid = sensorid;
    }

    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public Integer getAreaid() {
        return areaid;
    }

    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

}
